class RecordModel {
  String? id;
  String? type;
  List<int>? puzzle;
  int? time;
  int? duration;

  RecordModel({this.id, this.type, this.puzzle, this.time, this.duration});

  RecordModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    type = json['type'];
    puzzle = json['puzzle'].cast<int>();
    time = json['time'];
    duration = json['duration'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['type'] = this.type;
    data['puzzle'] = this.puzzle;
    data['time'] = this.time;
    data['duration'] = this.duration;
    return data;
  }
}

